import request from "@/utils/request";

export const userList = (params) => {
  return request({
    method: "GET",
    url: "/private/v1/users",
    params,
  });
};

export const updateListState = (id, flag) => {
  return request.put(`/private/v1/users/${id}/state/${flag}`);
};

export const getRightsList = () => {
  return request({
    method: "GET",
    url: "/private/v1/rights/list",
  });
};
